﻿
@{
    ViewBag.Title = Resources.WebStringsWeb.WebTitle;
    Layout = "~/Views/Shared/_LayoutMobile.cshtml";
}

@section css {
    <style>
        .IsException {
            color: red;
        }

        .IsNormal {
            color: blue;
        }

        .mui-bar ~ .mui-content .mui-scroll-wrapper {
            top: 44px;
            height: auto;
        }
    </style>
}
<div ng-cloak ng-controller="HomeController" ng-init="  PlaceId='@(Request.QueryString["PlaceId"].IsEmpty() ? "" : Request.QueryString["PlaceId"])';
                RoomId='@(Request.QueryString["RoomId"].IsEmpty() ? "" : Request.QueryString["RoomId"])';
                 PlaceName='@(Request.QueryString["PlaceName"].IsEmpty() ? "" : Request.QueryString["PlaceName"])';GetPlaceResponsibilityAttrList(RoomId);">
    <header class="mui-bar mui-bar-nav">
        @*<a id="menu" class="mui-action-menu mui-icon mui-icon-plus mui-pull-right" href="MDrillFormAdd"></a>*@
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title" style="color:white;" ng-cloak>{{PlaceName}}-场所责任</h1>
    </header>
    <div class="mui-content">
        <div class="mui-card" ng-repeat="x in AttrList" ng-cloak>
            <div class="mui-card-header"><h4>{{$index+1}}.{{x.ResponsibilityName}}</h4></div>
            <div class="mui-card-content">
                <div class="mui-card-content-inner">
                    <b>责任部门</b>：{{x.DepartmentName}}<br />
                    <b>责任人</b>：{{x.UserList}}<br />
                    <b ng-show="x.ContentList.length>0">责任内容：</b><br />
                    <p style="color:black;margin-top:10px;" ng-repeat="y in x.ContentList"><span class="mui-badge mui-badge-primary">{{$index+1}}</span> {{y}}</p>

                </div>
            </div>
        </div>
    </div>
    <div style="height:60px;">

    </div>
</div>
@section js{
    <script src="~/Assets/js/mui.pullToRefresh.js"></script>
    <script src="~/Assets/js/mui.pullToRefresh.material.js"></script>
    <script src="~/Assets/js/pg/Home.js?v=@DateTime.Now.ToString("yyyyMMddHHmm")"></script>

    <script>
        mui.init({
            swipeBack: false,
            keyEventBind: {
                backbutton: false  //关闭back按键监听
            }
        });
        mui.showLoading("正在加载..", "div");
        setTimeout(function () {
            mui.hideLoading();
        }, 1000);


    </script>
}

